while True:
    try:
        n, m = map(int, input().strip().split())
        s = 0
        for i in range(0, m-n+1):
            s += 1/(n+i)**2

        print("%.5f" % (s))
    except:
        break
